<include file="public@header"/>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="/portal/admin_message">所有留言</a></li>
        <li class="active"><a href="javascript:void(0);">留言详情</a></li>
    </ul>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-lis" style="text-align: center">
            <tr>
                <th>姓名：</th>
                <td>{$message.truename}</td>
            </tr>
            <tr>
                <th>手机号：</th>
                <td>{$message.mobile}</td>
            </tr>
            <tr>
                <th>邮箱：</th>
                <td>{$message.email}</td>
            </tr>
            <tr>
                <th>留言内容：</th>
                <td>{$message.message}</td>
            </tr>
            <tr>
                <th>状态：</th>
                <td>
                    <switch name="$message['status']">
                        <case value="0">未读</case>
                        <case value="1">已读</case>
                        <case value="2">已处理</case>

                    </switch>
                </td>
            </tr>
            <tr>
                <th>留言时间：</th>
                <td>{$message.created_at}</td>
            </tr>
            <tr>
                <th>最近操作时间：</th>
                <td>{$message.updated_at}</td>
            </tr>
            <if condition="$message['status'] == 0||$message['status'] == 1">

            <tr>
                <td colspan="2">
                    <a href="/portal/admin_message/mark?id={$message.id}" class="js-ajax-delete btn btn-info" data-msg="确定标记为已处理？">标记</a>
                </td>
            </tr>
            </if>
        </table>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }

    $(function () {
        setCookie("refersh_time", 0);
        Wind.use('artDialog','iframeTools', function () {
            //批量复制
            $(document).on('click','.seeMessage',function (e) {
                e.preventDefault();
                var context = $(this).attr('data-message');
                art.dialog.through({
                    id: 'success',
                    content: context,
                    cancelVal: '关闭',
                    cancel: true
                });
            })

        });
    });
</body>
</html>